Fix bug #17905 with display of point in partially visible line at end of window.
authorEli Zaretskii <eliz@gnu.org>
Fri, 4 Jul 2014 13:22:04 +0000 (16:22 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 4 Jul 2014 13:22:04 +0000 (16:22 +0300)
commit8763f0e4cd2d5ac4b5963a33a5d76fa1342f78e8
treea0a67ef9b31c67faceb06cb2a30335808e201669
parent585d25474572215d861737a25e9b74c4563fd72c
Fix bug #17905 with display of point in partially visible line at end of window.

 src/xdisp.c (redisplay_window): If redisplay of a window ends up
 with point in a partially visible line at end of the window, make
 sure the amended position of point actually has smaller Y
 coordinate; if not, give up and scroll the display.
 src/window.c (window_scroll_pixel_based): When point ends up at the
 last fully visible line, don't let move_it_to stop at the left
 edge of the line and dupe us into thinking point is inside the
 scroll margin.
src/ChangeLog
src/window.c
src/xdisp.c